package com.syty.demo.exception;

import com.syty.demo.result.ExceptionResultSet;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "自定义异常类")
public class MyException extends RuntimeException {

    private ExceptionResultSet exceptionResultSet;


    public MyException(ExceptionResultSet exceptionResultSet) {
        super(exceptionResultSet.getMessage());
        this.exceptionResultSet = exceptionResultSet;
    }

    public ExceptionResultSet getExceptionResultSet() {
        return exceptionResultSet;
    }


}
